package edu.tec.mty.core.modules.models;

public class Message {

	private long time;
	private double direction;
	private String sender;
	private String team;
	private int number;
	private String text;
	
	//Constructor for referee messages
	public Message(long time, String text) {
		this.time = time;
		this.sender = "referee";
		this.text = text;
	}
	
	//Constructor for coach messages (player hearing)
	public Message(long time, String sender, String text) {
		this.time = time;
		this.sender = sender;
		this.text = text;
	}
	
	//Constructor for messages from player (coach hearing)
	public Message(long time, String team, int number, String text) {
		this.time = time;
		this.team = team;
		this.number = number;
		this.sender = "player";
		this.text = text;
	}
	
	//Constructor for messages from player (player hearing)
	public Message(long time, double direction, String text) {
		this.time = time;
		this.direction = direction;
		this.sender = "player";
		this.text = text;
	}
	
	public String getTeam() {
		return this.team;
	}
	
	public int getPlayerNumber() {
		return this.number;
	}
	
	public long getTime() {
		return this.time;
	}
	
	public double getDirection() {
		return this.direction;
	}
	
	public String getSender() {
		return this.sender;
	}
	
	public String getMessage() {
		return this.text;
	}
	
}
